import 'package:flutter/material.dart';

class MsgBox extends StatelessWidget {
  Widget child;

  MsgBox({Key? key, required this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      crossAxisAlignment: CrossAxisAlignment.start,
      mainAxisSize: MainAxisSize.min,
      children: [
        Container(
          transform: Matrix4.translationValues(-14, 3, 0),
          child: Icon(
            Icons.arrow_left,
            color: Colors.white,
          ),
        ),
        Expanded(
            child: Wrap(
          children: [
            Container(
              transform: Matrix4.translationValues(-24, 0, 0),
              padding: EdgeInsets.all(10),
              decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(4)),
              ),
              child: child,
            ),
          ],
        ))
      ],
    );
  }
}
